﻿namespace Jack.EtcdConfiguration
{
    public class EtcdOptions
    {
        /// <summary>
        /// etcd连接字符串，多个以逗号分隔，例如：http://localhost:23790,http://localhost:23791,http://localhost:23792
        /// </summary>
        public string ConnectionString { get; set; }
        /// <summary>
        /// 环境，例如：/dev、/uat、/prod，默认空字符串
        /// </summary>
        public string Env { get; set; } = string.Empty;
        /// <summary>
        /// 配置前缀key，不需要包含Env的值
        /// </summary>
        public List<string> PrefixKeys { get; set; }
        /// <summary>
        /// etcd basic验证时的用户名，默认空字符串
        /// </summary>
        public string Username { get; set; } = string.Empty;
        /// <summary>
        /// etcd basic验证时的密码，默认空字符串
        /// </summary>
        public string Password { get; set; } = string.Empty;
    }
}
